package com.buer.storage.service;

import com.buer.storage.dto.SupplierDto;
import com.buer.storage.entity.Supplier;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface SupplierService {

    List<Supplier> findSupplier();
    //增加供应商
    int insert(SupplierDto supplierDto);
    //删除供应商
    int delete(int supplierId);
    //修改供应商
    int update(Supplier supplier);
    //查询所有供应商
    PageInfo<Supplier> findAllSupplier(Map<String, Object> map);

    PageInfo<Supplier> searchSupplier(Map<String, Object> map);

    List<String> getAllSupplier();

    Supplier getSupplierByName(String supplierName);
}
